<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Bianqian.jsp' starting page</title>
    <script src="js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <script src="js/nicEdit.js" type="text/javascript"></script>
	<script type="text/javascript">
	bkLib.onDomLoaded(function() {
		new nicEditor().panelInstance('area1');
	});
	
	function mm(){
	   var title=document.getElementById("title").value;
	   var time=document.getElementById("time").value;
	   
	   if(title==null || title=="" || time=="" || time==null){
	     alert("标题和时间都不可为空,请重新填写后提交！");
	     return false;
	   }
	
	}
	
	</script>
	
  </head>
  
  <body>
        
     <!-- <h2 style="margin-top:20px;">个人便签设置</h2> -->
	   	<p style="margin:10px 20px;">>>当前位置:新增便签</p>
	   	<hr>
	   	<!-- <h2 style="margin:0px 20px;">新增便签</h2> -->
	   	<div style="margin:20px 10px;">
	   	  <form action="<%=request.getContextPath() %>/yz/mynoteadd" method="post" onsubmit="return mm()">
	   		<label>便签标题:</label>
	   		<input type="text" name="mynote.notetitle" size="60" id="title"/>
	   		&nbsp;&nbsp;&nbsp;&nbsp;
		    <label>创建时间:</label>
	   		<input type="text" id="time" name="mynote.createtime" size="30" onclick="WdatePicker()" /><br><br>
	   		<label>便签内容:</label><br>
			<textarea cols="100" id="area1" rows="20" name="mynote.notecontent"></textarea><br><br>
		    <div style="position: absolute;right: 320px;margin-top: -15px;">
		       <button type="submit">添加便签</button>	   		
		    </div>
	   	  </form>
	   	</div>
  </body>
</html>

